package com.loanapp.server.market.api.home.hystrix;

import com.loanapp.server.market.api.home.api.InformationApi;
import com.loanapp.server.market.api.platform.entity.CmsComment;
import feign.hystrix.FallbackFactory;
import org.springframework.cglib.proxy.Factory;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class InformationApiFallbackFactory implements FallbackFactory<InformationApi> {
    public InformationApi create(Throwable throwable) {
        return new InformationApi() {
            public List<Map<String, Object>> getInformationList(String cmsChannel, int[] page) {
                return null;
            }

            public List<Map<String, Object>> getDiscussList(String informationId, int[] page) {
                return null;
            }

            public Integer saveCmsDiscuss(CmsComment cmsComment) {
                return null;
            }

            public Integer deleteCmsDiscuss(String discussId, String informationId) {
                return null;
            }

            public List<Map<String, Object>> getCustomInformationVisit(int[] page, String visitType, Long user) {
                return null;
            }

            public void insertInformationVisit(String informationId, String visitType, Long user) {

            }

            public void deleteInformationVisit(String visitType, String idStr, Long user) {

            }

            public List<Map<String, Object>> getInformationBranchList(String cmsChannel, int[] page) {
                return null;
            }
        };
    }
}
